﻿using UnityEngine;

public class UIType
{
    public string Path { get; private set; }
    public string Name { get; private set; }
    public Transform Parent { get; private set; }
    public UIType(string path,Transform parent=null)
    {
        Path = path;
        Name = Path.Substring(path.LastIndexOf('/') + 1);
        Parent = parent;
    }
    public override string ToString()
    {
        return $"Path:{Path}\tName:{Name}";
    }
    public static readonly UIType MainPanelType = new UIType("Prefabs/UI/MainPanel");
    public static readonly UIType MessagePanelType = new UIType("Prefabs/UI/MessagePanel");
}
